package cn.com.sise.service.impl;

import cn.com.sise.dao.AdminDao;
import cn.com.sise.pojo.Admin;
import cn.com.sise.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {
    private AdminDao adminDao;

    @Autowired
    public void setAdminDao(AdminDao adminDao) {
        this.adminDao = adminDao;
    }

    public Admin login(String name, String password) {
        return adminDao.login(name, password);
    }

    public Admin getAdminById(int adminId) {
        return adminDao.getAdminById(adminId);
    }

}
